<body>
<div class="path fn-clear"><span class="fb">首页</span><a href="{url('diypage/index')}">自定义单页</a><a href="{url('diypage/index')}">添加或修改</a></div>
<div class="ui-form">
<form id="form" action="{url('diypage/add')}" method="post">
<input type="hidden" name="fid" value="{$fid}"/>   
<table>
    <tr><th>所属站点:</th><td>
      <select class="select" name="language">
        <option value="0" checked="checked">默认站点</option>
      {loop $language $rs}
        <option value="{$rs['id']}" {if $info['language'] == $rs['id']}selected{/if}>{$rs['name']}</option>
      {/loop}
      </select></td>
    </tr>
    <tr>
        <th>页面模板:</th><td><input datatype="*" nullmsg="页面模板必须填写"  class="input" name="tpl_channel" id="tpl_channel" type="text" value="{$info['tpl_channel']}" />
        <input url="{url('themes/selecttpl',array(id=>'tpl_channel'))}" title="模板选择" value="模板选择" type="button" class="button win" /></td>
    </tr> 
    <tr><th>页面名称:</th><td><input datatype="*" nullmsg="页面名称必须填写" class="input w200"  name="title"  type="text" value="{$info['title']}" /></td></tr>
    <tr><th>关键字:</th><td><input class="input w500" datatype="*" type="text"  name="keywords" nullmsg="关键字必须填写" value="{$info['keywords']}" /> </td></tr>
    <tr><th>页面描述:</th><td><textarea class="textarea w400 h50" datatype="*" nullmsg="页面描述必须填写" name="description" nullmsg="页面描述必须填写">{$info['description']}</textarea></td></tr>
    <tr>
        <th>标签内容:</th><td>
        <textarea class="ui-editor" name="content" style="width:100%;height:300px">{htmlspecialchars($info['content'])}</textarea>
        </td>
    </tr>
</table> 
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','Dialog','Form','Editor',function(){ 
    $('#form').cpFormPage({ajaxpost:1});
    $(".win").click(function(){
        $(this).cpWindows();
    });
}) 
</script>
</body>
